package com.example.routeplansystem.entity.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.File;

/**
 * @Author lucong
 * @Date 2022/11/1
 * @Description
 */

@Data
@NoArgsConstructor
public class AFile {
    private String name;
    private boolean isDirectory;

    public AFile(File file) {
        this.name = file.getName();
        this.isDirectory = file.isDirectory();
    }
}
